package cn.iocoder.yudao.module.myerp.controller.admin.SKCproduct.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - ERP SKC级产品 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpProductSkcRespVO {

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2540")
    @ExcelProperty("产品编号")
    private Long id;

    @Schema(description = "SPU", requiredMode = Schema.RequiredMode.REQUIRED, example = "2540")
    @ExcelProperty("SPU")
    private Long spu;

    @Schema(description = "SKC", requiredMode = Schema.RequiredMode.REQUIRED, example = "2540")
    @ExcelProperty("SKC")
    private Long skc;

    @Schema(description = "店铺ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22941")
    @ExcelProperty("店铺ID")
    private String shopId;

    @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "女士衬衫")
    @ExcelProperty("商品名称")
    private String name;

    @Schema(description = "货号", example = "64")
    @ExcelProperty("货号")
    private Long categoryId;

    @Schema(description = "轮播首图", requiredMode = Schema.RequiredMode.REQUIRED, example = "img/xxx.png")
    @ExcelProperty("轮播首图")
    private String img;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "成本", example = "50")
    @ExcelProperty("成本")
    private BigDecimal purchasePrice;

    @Schema(description = "报价", example = "90")
    @ExcelProperty("报价")
    private BigDecimal salePrice;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}